package com.molichuxing.gateway.bff.basic.services.impl;

import com.molichuxing.gateway.bff.basic.convertor.Convert;
import com.molichuxing.gateway.bff.basic.entity.response.CarBaseConfVo;
import com.molichuxing.gateway.bff.basic.entity.response.RegionVo;
import com.molichuxing.gateway.bff.basic.services.BasicBffService;
import com.molichuxing.gateway.bff.basic.services.VehicleBffService;
import com.molichuxing.services.infrastructure.dto.response.RegionDto;
import com.molichuxing.services.infrastructure.service.RegionService;
import com.molichuxing.services.infrastructure.service.StoreService;
import com.molichuxing.services.infrastructure.service.VehicleParamService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("vehicleBffService")
public class VehicleBffServiceImpl implements VehicleBffService {

    private static final Logger logger = LoggerFactory.getLogger(VehicleBffServiceImpl.class);

    @Resource
    private VehicleParamService vehicleParamService;

    @Override
    public List<CarBaseConfVo> findCarModelParamByModelId(Integer modelId) {
        return Convert.toCarBaseConfVo(vehicleParamService.findCarModelParamByModelId(modelId));
    }
}
